package com.api.day01stringdemo1;


//查看字符串是否以 指点前缀或者后缀结尾
public class StartsDemo {
    public static void main(String[] args) {
        String s = "zero name .jpg";
        boolean flag1 = s.startsWith("ze");
        boolean flag2 = s.endsWith(".png");
        System.out.println(flag1);
        System.out.println(flag2);
    }
}
